<!---
	Copyright 2010 Edward Trudeau, Jeremy Battle
    This software is freely available under the MIT License: http://www.opensource.org/licenses/mit-license.php
    http://ayc.googlecode.com
    
--->

component persistent="true" table="studentInstances" extends="wtf.aycBase" schema="dbo" output="false"
{
	/* properties */
	property name="studentinstanceid" column="id" type="numeric" ormtype="int" fieldtype="id";
	property name="studentId" column="studentId" type="numeric" ormtype="int"; 
	property name="agencyId" column="agencyId" type="numeric" ormtype="int" ; 
	property name="year" column="year" type="string" ormtype="string" ; 
	property name="yearId" column="yearId" type="numeric" ormtype="int" ; 
	property name="address1" column="address1" type="string" ormtype="string" ; 
	property name="address2" column="address2" type="string" ormtype="string" ; 
	property name="city" column="city" type="string" ormtype="string" ; 
	property name="state" column="state" type="string" ormtype="string" ; 
	property name="zipCode" column="zipCode" type="string" ormtype="string" ; 
	property name="cellPhone" column="cellPhone" type="string" ormtype="string" ; 
	property name="phone" column="phone" type="string" ormtype="string" ; 
	property name="dateApplied" column="dateApplied" type="date" ormtype="timestamp" ; 
	property name="referral" column="referral" type="numeric" ormtype="double" ; 
	property name="referralDate" column="referralDate" type="date" ormtype="timestamp" ; 
	property name="studentStatus" column="studentStatus" type="string" ormtype="string" ; 
	property name="status" column="status" type="string" ormtype="string" ; 
	property name="placement" column="placement" type="numeric" ormtype="double" ; 
	property name="liaisonId" column="liaisonId" type="numeric" ormtype="int" ; 
	property name="fieldInstructor1Id" column="fieldInstructor1Id" type="numeric" ormtype="int" ; 
	property name="fieldInstructor2Id" column="fieldInstructor2Id" type="numeric" ormtype="int" ; 
	property name="STEP" column="STEP" type="numeric" ormtype="boolean" ; 
	property name="WRI" column="WRI" type="numeric" ormtype="boolean" ; 
	property name="EBI" column="EBI" type="numeric" ormtype="boolean" ; 
	property name="differentFieldDates" column="differentFieldDates" type="numeric" ormtype="boolean" ; 
	property name="interestAdults" column="interestAdults" type="numeric" ormtype="boolean" ; 
	property name="interestOlderAdults" column="interestOlderAdults" type="numeric" ormtype="boolean" ; 
	property name="interestAdolescents" column="interestAdolescents" type="numeric" ormtype="boolean" ; 
	property name="interestChildren" column="interestChildren" type="numeric" ormtype="boolean" ; 
	property name="interestFamilyRx" column="interestFamilyRx" type="numeric" ormtype="boolean" ; 
	property name="interestFamilyStrengths" column="interestFamilyStrengths" type="numeric" ormtype="boolean" ; 
	property name="interestPolicy" column="interestPolicy" type="numeric" ormtype="boolean" ; 
	property name="interestManagement" column="interestManagement" type="numeric" ormtype="boolean" ; 
	property name="interestPlanning" column="interestPlanning" type="numeric" ormtype="boolean" ; 
	property name="choice1" column="choice1" type="string" ormtype="string" ; 
	property name="choice2" column="choice2" type="string" ormtype="string" ; 
	property name="choice3" column="choice3" type="string" ormtype="string" ; 
	property name="choice4" column="choice4" type="string" ormtype="string" ; 
	property name="fwsRequested" column="fwsRequested" type="numeric" ormtype="boolean" ; 
	property name="fwsRewarded" column="fwsRewarded" type="numeric" ormtype="boolean" ; 
	property name="fwsAmount" column="fwsAmount" type="numeric" ormtype="double" ; 
	property name="fwsComments" column="fwsComments" type="string" ormtype="string" ; 
	property name="comments" column="comments" type="string" ormtype="string" ; 
	property name="interview1" column="interview1" type="string" ormtype="string" ; 
	property name="interview1outcome" column="interview1outcome" type="string" ormtype="string" ; 
	property name="interview1date" column="interview1date" type="date" ormtype="timestamp" ; 
	property name="interview2" column="interview2" type="string" ormtype="string" ; 
	property name="interview2outcome" column="interview2outcome" type="string" ormtype="string" ; 
	property name="interview2date" column="interview2date" type="date" ormtype="timestamp" ; 
	property name="interview3" column="interview3" type="string" ormtype="string" ; 
	property name="interview3outcome" column="interview3outcome" type="string" ormtype="string" ; 
	property name="interview3date" column="interview3date" type="date" ormtype="timestamp" ; 
	property name="concentration" column="concentration" type="string" ormtype="string" ; 
	property name="student" fieldtype="many-to-one" cfc="student" fkcolumn="studentid"  ;
	
	public string function getDisplayColumns(){
		var displayColumns = "studentid,agencyid,year,yearid";
		return displayColumns;
	}
	
	public string function hasMany(){
		return "";
	}

} 


